home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 26.zip / BS1 part 26 / Powervisor v1.10b disk1.adf / PVDevelop / include / PV / ScreenBase.i < prev   
Text File  |  1991-09-29  |  6KB  |  277 lines

  1.     IFND    PV_SCREENBASE_I
  2. PV_SCREENBASE_I    SET    1
  3. **
  4. **    $Filename: ScreenBase.i $
  5. **    $Release: 1.10 $
  6. **    $Revision: 37.615 $
  7. **    $Date: 29 Sep 91 $
  8. **
  9. **    Structure definitions for Screen Base (see 'TheWizardCorner')
  10. **
  11. **     © 1991 Jorrit Tyberghein, included with PowerVisor
  12. **        All Rights Reserved
  13. **
  14.  
  15.     IFND PV_PVMEMORY_I
  16.     INCLUDE "pv:pvdevelop/include/PV/PVMemory.i"
  17.     ENDC
  18.  
  19.     IFND DOS_DOS_I
  20.     INCLUDE "dos/dos.i"
  21.     ENDC
  22.  
  23.     IFND INTUITION_INTUITION_I
  24.     INCLUDE "intuition/intuition.i"
  25.     ENDC
  26.  
  27.  
  28. INTMODE_HEX        equ    0
  29. INTMODE_DEC        equ    1
  30. INTMODE_HEXDEC        equ    2
  31.  
  32. SCROLLMODE_NOMORE    equ    0
  33. SCROLLMODE_MORE        equ    1
  34.  
  35. SNAPMODE_NOSPACE    equ    0
  36. SNAPMODE_SPACE        equ    1
  37.  
  38. LONESPC_NO        equ    0
  39. LONESPC_YES        equ    1
  40.  
  41. SBOTTOMMODE_NO        equ    0
  42. SBOTTOMMODE_YES        equ    1
  43.  
  44. INTERLACE_NO        equ    0
  45. INTERLACE_YES        equ    1
  46.  
  47. FANCY_NO        equ    0
  48. FANCY_YES        equ    1
  49.  
  50. LOGWINFLAGS_PRINTFILE    equ    1
  51. LOGWINFLAGS_PRINTSCREEN    equ    2
  52. LOGWINFLAGS_MORE    equ    4
  53. LOGWINFLAGS_TOTALHOME    equ    32
  54. LOGWINFLAGS_STATUSLINE    equ    64
  55. LOGWINFLAGS_BREAKCHECK    equ    128
  56. LOGWINFLAGS_AUTOOUTPUT    equ    256
  57.  
  58. BOXTYPE_UPDOWN        equ    0
  59. BOXTYPE_LEFTRIGHT    equ    1
  60. BOXTYPE_ATOMIC        equ    2
  61.  
  62. COLOR_GRAY        equ    0
  63. COLOR_BLACK        equ    1
  64. COLOR_WHITE        equ    2
  65. COLOR_BLUE        equ    3
  66.  
  67. Pen_BoxBackground    equ    0
  68. Pen_LWBackground    equ    1
  69. Pen_NormalText        equ    2
  70. Pen_PromptText        equ    3
  71. Pen_StatusTextInActive    equ    4
  72. Pen_StatusTextActive    equ    5
  73. Pen_InActive        equ    6
  74. Pen_Active        equ    7
  75. Pen_TopLeft3D        equ    8
  76. Pen_BottomRight3D    equ    9
  77. Pen_BoxLine        equ    10
  78. Pen_EmptyBox        equ    11
  79. Pen_LeftBox        equ    12
  80. Pen_RightBox        equ    13
  81. Pen_ShowPos3D        equ    14
  82. Pen_SGInActiveText    equ    15
  83. Pen_SGInActiveBack    equ    16
  84. Pen_SGActiveText    equ    17
  85. Pen_SGActiveBack    equ    18
  86.  
  87.  
  88. ** Global structure holding some global window information
  89. **
  90.     STRUCTURE    Global,0
  91.         APTR        gl_NextGlobal
  92.         APTR        gl_PrevGlobal
  93.         STRUCT        gl_PhysWinList,LH_SIZE
  94.         APTR        gl_ActiveLogWin
  95.         ULONG        gl_GlobalSignalSet
  96.         ULONG        gl_pad0
  97.         LABEL        gl_SIZE
  98.  
  99. ** The physical window corresponding with an Intuition window. This
  100. ** physical window also manages the logical windows and the boxes.
  101. ** Do not depend on the size of this structure !!!
  102. **
  103.     STRUCTURE    PhysicalWindow,LN_SIZE
  104.         STRUCT        pw_NewWindow,nw_SIZE
  105.         APTR        pw_Window
  106.         ULONG        pw_SignalSet
  107.         WORD        pw_LastCode
  108.         WORD        pw_LastQualifier
  109.         BYTE        pw_LeftBorder
  110.         BYTE        pw_TopBorder
  111.         BYTE        pw_RightBorder
  112.         BYTE        pw_BottomBorder
  113.         APTR        pw_MasterBox
  114.         APTR        pw_Global
  115.         STRUCT        pw_LogWinList,LH_SIZE
  116.         LABEL        pw_SIZE
  117.  
  118. ** The logical window.
  119. ** Do not depend on the size of this structure !!!
  120. **
  121.     STRUCTURE    LogicalWindow,LN_SIZE
  122.         APTR        lw_Box
  123.         WORD        lw_x
  124.         WORD        lw_y
  125.         WORD        lw_w
  126.         WORD        lw_h
  127.         WORD        lw_FirstVisibleCol
  128.         WORD        lw_FirstVisibleRow
  129.         WORD        lw_CurrentCol
  130.         WORD        lw_CurrentRow
  131.         WORD        lw_VisibleWidth
  132.         WORD        lw_VisibleHeight
  133.         ULONG        lw_Flags
  134.         STRUCT        lw_TextAttr,ta_SIZEOF
  135.         APTR        lw_Font
  136.         WORD        lw_FontWidth
  137.         WORD        lw_FontHeight
  138.         WORD        lw_FontBaseline
  139.         APTR        lw_PhysWin
  140.         WORD        lw_OptCol
  141.         WORD        lw_OptRow
  142.         WORD        lw_NrLinesInBuf
  143.         WORD        lw_NrColsInLine
  144.         APTR        lw_Buffer
  145.         BPTR        lw_LogFile
  146.         WORD        lw_MoreLines
  147.         ULONG        lw_pad0
  148.         ULONG        lw_pad1
  149.         UBYTE        lw_Active
  150.         BYTE        lw_TopBorderStatus
  151.         WORD        lw_RealTopCoordinate
  152.         APTR        lw_userdata
  153.         LABEL        lw_SIZE
  154.  
  155. ** The box used to manage the available space of a physical window.
  156. ** Do not depend on the size of this structure !!!
  157. **
  158.     STRUCTURE    Box,0
  159.         APTR        box_Parent
  160.         APTR        box_ChildA
  161.         APTR        box_ChildB
  162.         APTR        box_LogWin
  163.         APTR        box_PhysWin
  164.         WORD        box_ShareA
  165.         BYTE        box_Type
  166.         BYTE        box_Dirty
  167.         BYTE        box_LeftBorder
  168.         BYTE        box_TopBorder
  169.         BYTE        box_RightBorder
  170.         BYTE        box_BottomBorder
  171.         WORD        box_realx
  172.         WORD        box_realy
  173.         WORD        box_realw
  174.         WORD        box_realh
  175.         WORD        box_x1scrollbar
  176.         WORD        box_y1scrollbar
  177.         WORD        box_x2scrollbar
  178.         WORD        box_y2scrollbar
  179.         LABEL        box_SIZE
  180.  
  181.     STRUCTURE    DefaultLWSize,0
  182.         WORD        dlws_Columns
  183.         WORD        dlws_Rows
  184.         UWORD        dlws_Mask
  185.         UWORD        dlws_Flags
  186.         LABEL        dlws_SIZE
  187.  
  188.  
  189.     STRUCTURE    ScreenBase,0
  190.         UBYTE        sbase_IntDisplayMode
  191.         UBYTE        sbase_ScrollMode
  192.         UBYTE        sbase_AddSpaceAfterSnap
  193.         UBYTE        sbase_LoneSpcMode
  194.         UBYTE        sbase_SBottomMode
  195.         UBYTE        sbase_DontClearLine
  196.         UBYTE        sbase_pad0
  197.         UBYTE        sbase_InterlaceMode
  198.         UBYTE        sbase_FancyMode
  199.         UBYTE        sbase_pad1
  200.         ULONG        sbase_CmdLineLen
  201.         APTR        sbase_CmdLine
  202.         UWORD        sbase_CursorPos
  203.         STRUCT        sbase_MainDefSize,dlws_SIZE
  204.         STRUCT        sbase_ExtraDefSize,dlws_SIZE
  205.         STRUCT        sbase_RefreshDefSize,dlws_SIZE
  206.         STRUCT        sbase_DebugDefSize,dlws_SIZE
  207.         STRUCT        sbase_PPrintDefSize,dlws_SIZE
  208.         STRUCT        sbase_RexxDefSize,dlws_SIZE
  209.         PVBLOCK        sbase_SnapCommand
  210.         LONG        sbase_pad2
  211.         LONG        sbase_pad3
  212.         APTR        sbase_MainPW
  213.         APTR        sbase_MainLW
  214.         APTR        sbase_RefreshLW
  215.         APTR        sbase_DebugLW
  216.         APTR        sbase_ExtraLW
  217.         APTR        sbase_PPrintLW
  218.         APTR        sbase_RexxLW
  219.         APTR        sbase_CurrentLW
  220.         WORD        sbase_PromptPosX
  221.         WORD        sbase_LeftStringPosX
  222.         WORD        sbase_RightStringPosX
  223.         APTR        sbase_OtherScreen
  224.         APTR        sbase_PVScreen
  225.         ULONG        sbase_IMsgClass
  226.         UWORD        sbase_IMsgCode
  227.         APTR        sbase_IMsgIAddress
  228.         WORD        sbase_IMsgMouseX
  229.         WORD        sbase_IMsgMouseY
  230.         UWORD        sbase_IMsgQualifier
  231.         APTR        sbase_TheGlobal
  232.         LONG        sbase_pad4
  233.         LONG        sbase_pad5
  234.         STRUCT        sbase_MainString,8+2
  235.         STRUCT        sbase_ExtraString,8+2
  236.         STRUCT        sbase_DebugString,8+2
  237.         STRUCT        sbase_RefreshString,8+2
  238.         STRUCT        sbase_PPrintString,8+2
  239.         STRUCT        sbase_RexxString,8+2
  240.         ULONG        sbase_StartupFlags
  241.         WORD        sbase_WinX
  242.         WORD        sbase_WinY
  243.         WORD        sbase_WinW
  244.         WORD        sbase_WinH
  245.         WORD        sbase_ScreenW
  246.         WORD        sbase_ScreenH
  247.         STRUCT        sbase_FancyPens,24
  248.         STRUCT        sbase_NoFancyPens,24
  249.         APTR        sbase_CurrentPenTable
  250.         STRUCT        sbase_BusyPrompt,6
  251.         STRUCT        sbase_MorePrompt,6
  252.         STRUCT        sbase_WaitPrompt,6
  253.         STRUCT        sbase_LockPrompt,6
  254.         STRUCT        sbase_ScanPrompt,4
  255.         STRUCT        sbase_FeedBackPrompt,2
  256.         APTR        sbase_LockLW
  257.         APTR        sbase_LockPrompt
  258.         UBYTE        sbase_LockState
  259.         UBYTE        sbase_BusyMode
  260.         UBYTE        sbase_GadgetExists
  261.         UBYTE        sbase_pad6
  262.         STRUCT        sbase_DefaultFontName,34
  263.         STRUCT        sbase_DefaultFont,ta_SIZEOF
  264.         UWORD        sbase_LogWinBorderHeight
  265.         UWORD        sbase_pad7
  266.         WORD        sbase_DragToleranceX1
  267.         WORD        sbase_DragToleranceY1
  268.         WORD        sbase_DragToleranceX2
  269.         WORD        sbase_DragToleranceY2
  270.         WORD        sbase_SizeToleranceX
  271.         WORD        sbase_SizeToleranceY
  272.         APTR        sbase_rtRequestStruct
  273.                 APTR        sbase_ReqToolsBase
  274.         LABEL        sbase_SIZE
  275.  
  276.     ENDC
  277.